<template>
    <div class="endpage" :style="{minHeight:winheight+'px'}">
        <div>亲爱的<h2>{{myname}}</h2><br> 您为<h2>{{youname}}</h2>的祝福平安果准备好了！<br> 快去把苹果送给TA吧！<br> 记得告诉TA要扫描二维码哦！</div>
    </div>
</template>

<script type="text/ecmascript-6">
    export default {
        data() {
            return {
                winheight: window.innerHeight,
                myname: '小红',
                youname: '小明'
            }
        },
        mounted () {
            let that = this;
            that.myname = this.$route.params.youname,
            that.youname = that.$route.params.toname
        }
    }
</script>

<style scoped>

</style>
